<?php

/* @var $this yii\web\View */
use yii\helpers\Html;
use yii\widgets\ActiveForm;

$this->title = '首信易支付配置';
$this->params['breadcrumbs'][] = $this->title;

?>
<!-- page title -->
<div class="page-title">
  <div>
    <h1><i class="fa fa-trophy"></i> 首信易支付配置</h1>
    <ul class="breadcrumb side">
      <li><i class="fa fa-home fa-lg"></i></li>
      <li>支付管理</li>
      <li class="active"><a href="#">首信易支付配置</a></li>
    </ul>
  </div>
</div>
<!-- page title end-->

<!-- page body start -->
<div class="card">
<?php $form = ActiveForm::begin(); ?>
    <?php
      if(isset($tip)&&$tip===true){
        if($model->hasErrors()){
    ?>
          <div class="alert alert-danger" role="alert">
            <?php
                foreach($model->getErrors("") as $key=>$value){
                  echo $value."<br>";
                }
            ?>
          </div>
    <?php
        }else{
    ?>
          <div class="alert alert-success" role="alert">首信易支付配置成功！</div>
    <?php
        }
      }
    ?> 
    <?= $form->field($model, 'businessid') ?>
    <?= $form->field($model, 'key') ?>

    <div class="form-group">
        <?= Html::submitButton('提交', ['class' => 'btn btn-warning']) ?>
    </div>

<?php ActiveForm::end(); ?>
</div>
<!-- page body end-->
